package com.xxgc.eow.mapper;

import com.xxgc.eow.entity.Secondaycomment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 二级评论（评论下面的评论） Mapper 接口
 * </p>
 *
 * @author Mr.Abel
 * @since 2023-05-22
 */
@Mapper
public interface SecondaycommentMapper extends BaseMapper<Secondaycomment> {
    Secondaycomment selectByCommentId(int commentId);

    int delSecondayComment (@Param("secondayCommentId") int secondayCommentId, @Param("time") LocalDateTime time);

    List<Secondaycomment> selectAll();
}
